<!--
  * 角色 功能点
  * 
  * @Author:    zhoujk
  * @Date:      2022-09-12 22:34:00
  *
-->
<template>
  <div class="point">
    <div class="point-label flex flex-wrap">
      <template v-for="module in props.tree" :key="module.id">
        <a-checkbox @change="emits('selectCheckbox', module)" :value="module.id" class="m-b-1">{{ module.name }} </a-checkbox>
      </template>
    </div>
  </div>
</template>
<script setup>
  const props = defineProps({
    tree: {
      type: Array,
      default: [],
    },
    index: {
      type: Number,
      default: 0,
    },
  })
  let emits = defineEmits(['selectCheckbox'])
</script>
<style scoped lang="less"></style>
